package com.g17.virtualpetbackend.repo;

import com.g17.virtualpetbackend.entity.Assistant;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Optional;

public interface AssistantRepository extends Neo4jRepository<Assistant,Long> {

    @Query("MATCH (n:Assistant) where n.work=$work RETURN n")
    Assistant findAssistantWork(@Param("work") String work);

}
